package org.myself.meeting.service;

import org.myself.meeting.mapper.AbsenceMapper;
import org.myself.meeting.model.Absence;
import org.myself.meeting.model.SignIn;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AbsenceService {

    @Autowired
    AbsenceMapper absenceMapper;

    public List<Absence> getAllAbsence() {
        return absenceMapper.getAllAbsence();
    }

    public Integer addSignIn(SignIn signIn) {
        return absenceMapper.addSignIn(signIn);
    }

    public List<SignIn> getAllSignIn() {
        return absenceMapper.getAllSignIn();
    }

    public Integer deleteSignInById(Integer id) {
        return absenceMapper.deleteSignInById(id);
    }
}
